/*		Filename: 	accounting_manager.h
 *		Author:		彭望
 *		Date:		2012-01-10
 *		Use:		定义计费标准管理器的结构
 */

#ifndef ACCOUNTING_MANAGER_H
#define ACCOUNTING_MANAGER_H

#include "public.h"
#include "accounting_info.h"
#include "database_manager.h"

class CAccountingManager
{
		public:
			//添加计费规则
			RetCode_t add_rule(const CAccountingInfo& info);
			//根据info修改计费规则
			RetCode_t modify_rule(const CAccountingInfo& info);
			//提取所有计费规则并填充infoList
			RetCode_t query_rule(const CAccountingInfoList& infoList);
		private:
			DBManagerPtr m_dbPtr;
};
#endif

